/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.flying.drools.model;

import lombok.Data;

import java.util.Date;

@Data
public class Coupon {

    public enum CouponType {
        DISCOUNT, TWOFORONE, POINTS
    }

    private Customer customer;
    private Order order;
    private CouponType type;
    private Date validFrom;
    private Date validUntil;

    public Coupon(Customer customer, Order order, CouponType type) {
        this.customer = customer;
        this.order = order;
        this.type = type;
    }
}
